﻿<?xml version="1.0" encoding="utf-8" ?>
<control xmlns:def="Definition" xmlns="http://schemas.sitecore.net/Visual-Studio-Intellisense">
  <PowerShell>
    <Script type="text/JavaScript" language="javascript" src="/Console/Scripts/jquery-1.7.1.min.js" />
    <Script type="text/JavaScript" language="javascript" src="/Console/Scripts/jquery.hotkeys.js" />
    <Stylesheet Src="/sitecore/shell/themes/standard/default.css" DeviceDependant="true" runat="server" />
    <Stylesheet Src="/Console/Styles/Console.css" DeviceDependant="true" runat="server" />
    <FormPage>
      <CodeBeside Type="Cognifide.PowerShell.Console.Layouts.PowerShellConsoleForm,Cognifide.PowerShell"/>
      <Border id="Console" Height="100%" class="console pre">
        <Border id="Output" Height="70%" class="console pre">
          <!-- Memo id="txtResult" Height="70%" Width="100%" OnKeyDown="return keyPress(event);"/ -->
          <Literal id="txtResult" Text="" runat="server"/>
        </Border>
        <Memo id="txtScript" Height="20%" Width="100%" Class="console pre"/>
        <Button id="Execute" Click="Execute" Header="Execute" Margin="0px 4px 0px 0px"/>
      </Border>
      <Script type="text/javascript" >
        $(document).bind('keydown', 'Ctrl+return', function () {
          $("#Execute").trigger("click");
          /* alert("Ctrl+return"); */
        });
        $(document).bind('keydown', 'Alt+return', function () {
          $("#Execute").trigger("click");
          /* alert("Alt+return"); */
        });
        $("#txtScript").focus();
      </Script>
    </FormPage>
  </PowerShell>
</control>
